﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Manage_Administrator_SystemManage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
        //if (Session["userName"] == null)
        //{
        //    Response.Redirect("/login.aspx");
        //}
        //if (Request.QueryString["type"] != null)
        //{
        //    Session["type"] = Request.QueryString["type"];
        //}
        //註冊SiteMapResolve事件給ModifyPath方法 
        //SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(this.ModifyPath);  
    }
    //在ModifyPath中撰寫動態路徑及所顯示的文字程式碼
    //private SiteMapNode ModifyPath(object sender, SiteMapResolveEventArgs e)
    //{
    //    SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true);        
    //    SiteMapNode modifyNode = currentNode;
    //    modifyNode.Url = "http://www.baidu.com";
    //    modifyNode.Title = "bbb";
    //     if ((currentNode = currentNode.ParentNode) != null)
    //     {
    //         currentNode.Url = "http://hao.360.cn/";
    //         currentNode.Title = "aaa";
    //     }
    //    return currentNode;
    //}
   protected void lnkbtnExit_Click(object sender, EventArgs e)
   {

       Response.Redirect("/login.aspx");
       Session["userName"] = null;
   }
}
